package com.googlecode.armycreator.gui.page;

import java.util.HashSet;
import java.util.Set;

import com.googlecode.armycreator.domain.GameSystem;
import com.googlecode.armycreator.dto.RosterDto;
import com.googlecode.armycreator.gui.panel.CreateNewRosterPanel;
import com.googlecode.armycreator.gui.presenter.RosterPresenter;

public class CreateNewRosterPage extends BaseArmyCreatorPage {

    public CreateNewRosterPage(RosterDto rosterDto, Set<GameSystem> availableSystems, RosterPresenter rosterPresenter) {
        Set<GameSystem> set = availableSystems == null ? new HashSet<GameSystem>() : availableSystems;
        add(new CreateNewRosterPanel("createNewRosterPanel", rosterDto, set, rosterPresenter));
    }

    private static final long serialVersionUID = 6011021090337918199L;
}
